<?php
require_once('nav.php');

$sql="select * from videotype";
$type_list=fetch_array($sql);
//var_dump($categary_list);
 ?>
<div class="col-sm-9 col-md-10">
	<form action="dovideoadd.php" class="form-horizontal" method="post" enctype="multipart/form-data">
		<div class="form-group">
           <label for="videoname" class="col-md-2 col-xs-3 control-label">视频名称</label>
           <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="videoname" placeholder="视频名称" name="videoname">
           </div>
           <label for="tid" class="col-md-2 col-xs-3 control-label">视频类型</label>
           <div class="col-md-10 col-xs-9">
     <select name="tid" class="form-control" id="tid" >
      <option>==请选择==</option>
      <?php 
      foreach ($type_list as $one) {
        echo '<option value="'.$one['tid'].'">'.$one['typename'].'</option>';
      }
       ?>
      
    </select>
           </div>

           
           <label for="pic" class="col-md-2 col-xs-3 control-label">视频海报</label>
           <div class="col-md-10 col-xs-9">
              <input type="file" class="form-control" id="pic" placeholder="视频海报" name="pic">
           </div>
           <label for="intro" class="col-md-2 col-xs-3 control-label">视频简介</label>
           <div class="col-md-10 col-xs-9">
              <textarea class="form-control" id="intro" placeholder="视频简介" name="intro"></textarea>
           </div>
           <label for="address" class="col-md-2 col-xs-3 control-label">下载地址</label>
           <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="address" placeholder="下载地址" name="address">
           </div>

        </div>
	
		<div class="form-group">
	            <label class="col-xs-3"></label>
	            <div class="col-md-10 col-xs-9 col-md-offset-2 col-xs-offset-3">
	               <input type="submit" value="提交" >
	               <input type="reset" value="重置" >
	            </div>
	    </div>
    </form>
</div>

 <?php 
require_once('footer.php');
  ?>